from django.conf.urls import url
from django.urls import re_path

from house import views

urlpatterns = [
                    re_path(r'^api/v1.0/areas$',views.GetAreasView.as_view()),
                    re_path(r'^api/v1.0/houses$',views.AddandSearchHouses.as_view()),
                    re_path(r'^api/v1.0/user/houses$', views.UserHouseDetialView.as_view()),
                    re_path(r'^api/v1.0/houses/index/$', views.IndexHouseView.as_view()),
                    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)/images', views.Upload_image.as_view()),
                    re_path(r'api/v1.0/houses/(?P<house_id>\d+)$', views.HouseDetialView.as_view()),
               ]